<html><!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>Demo - color 的基本使用</title>
<link rel="stylesheet" href="../../../../../../a.tbcdn.cn/s/kissy/gallery/pageNotification/1.0/index-min.css-t=20130701201313" tppabs="http://a.tbcdn.cn/s/kissy/gallery/pageNotification/1.0/index-min.css?t=20130701201313">
<script src="../../../../../../g.alicdn.com/kissy/k/1.4.7/seed.js" tppabs="http://g.alicdn.com/kissy/k/1.4.7/seed.js" data-config="{combine:true}"></script>
</head>

<body>
    Alpha值：
    <input type="text" id="a">
    Red值：
    <input type="text" id="r">
    Green值：
    <input type="text" id="g">
    Blue值：
    <input type="text" id="b">
    <br/>
    <button id="new">生成color实例</button>
    <button id="toHSL">toHSL</button>
    <button id="toHSLA">toHSLA</button>
    <button id="toRGB">toRGB</button>
    <button id="toRGBA">toRGBA</button>
    <button id="toHex">toHex</button>
    <button id="setHSV">setHSV</button>
    <button id="setHSL">setHSL</button>
    <br/>
    <button id="fromHSL">fromHSL</button>
    <button id="fromHSV">fromHSV</button>
    <br/>
    颜色字符串：
    <input type="text" id="str">
    <button id="parse">Parse</button>
<script src="assets/demo1.js" tppabs="http://docs.kissyui.com/1.4/source/raw/demo/color/assets/demo1.js"></script>
</body>
</html>